import { Button, Modal } from 'antd';
import React, { useState } from 'react';
// 父组件来控制弹窗的展示与隐藏啊
const App = ({delmodalopen,delIndex,closedelmodal}) => {
  const [isModalOpen, setIsModalOpen] = useState(true);
  const showModal = () => {
    setIsModalOpen(true);
  };
  const handleOk = () => {
    closedelmodal({close:false,isclose:"确定"})
  };
  const handleCancel = () => {
    closedelmodal({close:false,isclose:"取消"})
  };
  return (
    <>
     
      <Modal title="Basic Modal" open={delmodalopen} onOk={handleOk} onCancel={handleCancel}>
            您去顶要删除吗？
      </Modal>
    </>
  );
};
export default App;